From 4276fde7f870feeec65f33e43b2e0cd5ae79b572 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 20 Sep 2010 18:53:18 +0100 Subject: [PATCH] x86/hvm: fix extra size passed to __trace_var() While removing the casts on the last arguments to __trace_var() I noticed the bogus addition of 1 here. Signed-off-by: Jan Beulich --- xen/include/asm-x86/hvm/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-x86/hvm/trace.h b/xen/include/asm-x86/hvm/trace.h index 57dacaf619..2245b7ab1d 100644 --- a/xen/include/asm-x86/hvm/trace.h +++ b/xen/include/asm-x86/hvm/trace.h @@ -72,7 +72,7 @@ _d.d[4]=(d5); \ _d.d[5]=(d6); \ __trace_var(TRC_HVM_ ## evt, cycles, \ - sizeof(u32)*count+1, &_d); \ + sizeof(*_d.d) * count, &_d); \ } \ } while(0) -- 2.30.2